package zuoye;

import java.util.Random;

public class zuoye9 {
	public static void main(String[] args){
		int[] arr={1,2,3,4,5};
		Random rand=new Random();
		for(int i=arr.length;i>0;i--){
			int next=rand.nextInt(i);
			int temp=arr[next];
			arr[next]=arr[i-1];
			arr[i-1]=temp;
			System.out.println(arr[i-1]);
		}
	}
}
